package com.tovast.demo.repository;

import com.tovast.demo.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by zjp on 2016/9/24.
 */

public interface UserRepostiroy extends JpaRepository<User,Integer> {
    public List<User> findAllByNameContaining(String name);
    public Page<User> findAllByNameContaining(String name, Pageable pageable);
}
